﻿
namespace Backend.JYD.Config.Watcher
{
    public class WatcherConfig : BaseConfig
    {
        public enum TargetType{ File, Folder}

        public WatcherConfig() { }

        /// <summary>
        /// 
        /// </summary>
        public override string SectionName
        {
            get { return ConfigUtilities.ConfigName_WatcherConfig; }
        }

        /// <summary>
        /// 监控目标类型
        /// </summary>
        public TargetType WatcherType { get; set; }

        /// <summary>
        /// 文件名
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 监控目标路径
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// 是否监控子文件夹
        /// </summary>
        public bool IncludeSubdirectories { get; set; }

        /// <summary>
        /// 是否启用监控
        /// </summary>
        public bool Enable { get; set; }

        /// <summary>
        /// 文件执行修改变更提交类
        /// </summary>
        public string Executer { get; set; }
    }
}
